using foundation;
[Model("item")]
public class ItemModel : BaseModel
{
    public object createFilterRuntime(ClientData root, string id, string value)
    {
        var countvo = new CountItemVO();
        uint count = 0;
        foreach (var item in root.item.runtimes.Values)
        {
            if (item.id.Equals(value))
            {
                count += item.count;
            }
        }
        countvo.count = count;
        countvo.id = value;
        return countvo;
    }

}
public class CountItemVO : CountConditionVO
{
    
}
